// config/db.js
const mysql = require('mysql2/promise');

const pool = mysql.createPool({
  host: '127.0.0.1',
  user: 'root', // 根据你的数据库配置修改
  password: '123456', // 根据你的数据库配置修改
  database: 'skshopdb',
  waitForConnections: true,
  connectionLimit: 10,
  queueLimit: 0
});

module.exports = pool;